#include "Command.h"

using namespace std;

Command::~Command()
{
	for( list<Node*>::iterator it = exprs.begin(); it != exprs.end(); it++ )
	{
		delete(*it);
	}
}

void Command::addExpr(Node * expr)
{ exprs.push_back(expr); }

const std::list<Node*> & Command::getExprList() const
{ return exprs; }

void Command::accept(Visitor & v)
{ v.visitCommand(this); }

const std::string & Command::getName() const
{ return name; }

